package service.impl;
import dao.impl.DVDDaoImpl;
import entity.DVD;
import service.IDVDService;

public class DVDServiceImpl implements IDVDService{
	DVDDaoImpl ddi = new DVDDaoImpl();
	@Override
	public boolean save(DVD dvd) {
		return ddi.save(dvd);
	}

	@Override
	public boolean delete(String name) {
		return ddi.delete(name);
	}

	@Override
	public boolean update(DVD dvd) {
		return ddi.update(dvd);
	}

	@Override
	public DVD selectByName(String name) {
		return ddi.selectByName(name);
	}

	@Override
	public DVD[] selectByType(String type) {
		return ddi.selectByType(type);
	}

	@Override
	public DVD[] selectAll() {
		return ddi.selectAll();
	}

	@Override
	public boolean rentDVD(String name) {
		return ddi.rentDVD(name);
	}

	@Override
	public boolean returnDVD(String name) {
		return ddi.returnDVD(name);
	}

	@Override
	public DVD[] selectAllNotRend() {
		return ddi.selectAllNotRend();
	}

	@Override
	public DVD[] descendingOrderByTime() {
		return ddi.descendingOrderByTime();
	}
	
}
